projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b62b48
)
(choose_write_coding_system): Use system_eol_type for
author
Kenichi Handa
<handa@m17n.org>
Mon, 8 May 2006 05:20:16 +0000
(
05:20
+0000)
committer
Kenichi Handa
<handa@m17n.org>
Mon, 8 May 2006 05:20:16 +0000
(
05:20
+0000)
encoding if eol_type is not yet decided.
src/fileio.c
patch
|
blob
|
history
diff --git
a/src/fileio.c
b/src/fileio.c
index 14cec5de76544129204c04b8dcbdf93b7c8505bd..422f9d8dfc9fd7b654ebf794ed236cfe9c189585 100644
(file)
--- a/
src/fileio.c
+++ b/
src/fileio.c
@@
-4938,6
+4938,8
@@
choose_write_coding_system (start, end, filename,
setup_coding_system (Fcheck_coding_system (val), coding);
done_setup_coding:
+ if (coding->eol_type == CODING_EOL_UNDECIDED)
+ coding->eol_type = system_eol_type;
if (!STRINGP (start) && !NILP (current_buffer->selective_display))
coding->mode |= CODING_MODE_SELECTIVE_DISPLAY;
}